<?php
global $_GPC, $_W;
$GLOBALS['frames'] = $this->getMainMenu();
if($_GPC['cus_id']){
	$cusname=pdo_get('zh_gjw_cusmanage',array('id'=>$_GPC['cus_id']));
}
$list=pdo_getall('zh_gjw_reputationrecord',array('uniacid'=>$_W['uniacid'],'openid'=>$cusname['openid']),array() , '' , 'timesjc DESC');
if($_GPC['id']){
  $res=pdo_delete('zh_gjw_reputationrecord',array('id'=>$_GPC['id']));
  if($res){
    message('删除成功',$this->createWebUrl('reputationrecord',array('cus_id'=>$_GPC['cus_id'])),'success');
  }else{
    message('删除失败','','error');
  }
}
include $this->template('web/reputationrecord');